package com.ruoyi.project.system.banner.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 轮播图对象 banner
 *
 * Created by Administrator.
 *
 * @autor LCL - 2020/8/3 - 17:30.
 */
public class Banner extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private String id;

    /** 图片名称 */
    @Excel(name = "图片名称")
    private String name;

    /** 描述 */
    private String notes;

    /** 创建人ID */
    private Long creator;

    /** 创建时间 */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date created;

    /** 排序(正序) */
    private Long sort;

    /** 图片访问路径 */
    @Excel(name = "图片访问路径")
    private String headUrl;

    /** 轮播状态:0 禁用 1 启用 */
    @Excel(name = "轮播状态:0 禁用 1 启用")
    private Integer status;

    /** 图片类型 0：PC端 1：手机 */
    @Excel(name = "图片类型 0：PC端 1：手机")
    private Integer type;


    public String getId() {
        return id;
    }
    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }

    public String getNotes() {
        return notes;
    }
    public void setNotes(String notes) {
        this.notes = notes;
    }

    public Long getCreator() {
        return creator;
    }
    public void setCreator(Long creator) {
        this.creator = creator;
    }

    public Date getCreated() {
        return created;
    }
    public void setCreated(Date created) {
        this.created = created;
    }

    public Long getSort() {
        return sort;
    }
    public void setSort(Long sort) {
        this.sort = sort;
    }

    public String getHeadUrl() {
        return headUrl;
    }
    public void setHeadUrl(String headUrl) {
        this.headUrl = headUrl;
    }

    public Integer getStatus() {
        return status;
    }
    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getType() {
        return type;
    }
    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("notes", getNotes())
                .append("creator", getCreator())
                .append("created", getCreated())
                .append("sort", getSort())
                .append("headUrl", getHeadUrl())
                .append("status", getStatus())
                .append("type", getType())
                .toString();
    }

}
